package com.tan.cloud_8001.Service.impl;

import com.api.cloud_api.Entity.Pay;
import com.tan.cloud_8001.Dao.Paymapper;
import com.tan.cloud_8001.Service.PayService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

@Service
public class PayImpl implements PayService {

    @Resource
    private Paymapper paymapper;

    @Override
    public Long create(@RequestBody Pay payment) {
        return paymapper.create(payment);
    }



    @Override
    public Pay getPaymentById(@Param("id") Long id) {

        return paymapper.getPaymentById(id);
    }

}
